<template>
  <el-form-item :label="labelRuleValue.title" :prop="propValue">
    <el-date-picker
      :value="value"
      :disabled="disabledValue"
      clearable
      @change="handleValue"
      :type="dateType.type"
      :format="dateType.format"
      :value-format="dateType.valueFormat"
      :placeholder="$t('common.common32')"
    >
      <!-- 选择日期 -->
    </el-date-picker>
  </el-form-item>
</template>
<script>
export default {
  props: {
    value: {
      type: String, //对应值
      default: "",
    },
    propValue: {
      type: String,
      default: "",
    },
    labelRuleValue: {
      type: Object,
      default: function () {
        return {};
      },
    },
    disabledValue: {
      type: Boolean,
      default: false,
    },
    dateType: {
      //时间格式  date  OR   datetime
      type: Object,
      default: function () {
        return {};
      },
    },
  },
  methods: {
    handleValue(val) {
      this.$emit("update:value", val);
    },
  },
};
</script>
<style rel="stylesheet/scss" lang="scss" scoped>
.el-date-editor.el-input {
  width: 100%;
}
</style>
